package com.example.imoocmall.model.request;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

@Data
public class CreateOrderReq {

    @NotEmpty
    private String receiverName;//收货人姓名

    @Pattern(regexp = "^\\d{11}$",message = "请输入正确的手机号")
    @NotEmpty
    private String receiverMobile;//收货人电话

    @NotEmpty
    private String receiverAddress;//收货人地址


    private Integer postage = 0;//运费默认0

    private Integer paymentType = 1;//支付类型1-在线支付


}